package corerun

import (
	"core/coreentity"
	"gorm.io/gorm"
)

func StructToDb(PrjName string, db *gorm.DB) error {
	var m = clsdb{
		Ldb:     []coreentity.HtCls{},
		DB:      db,
		PrjName: PrjName,
	}
	return m.RefreshToDb()
}

func ActionToDb(PrjName string, db *gorm.DB) error {
	var m = actiondb{

		DB:      db,
		PrjName: PrjName,
	}
	return m.RefreshToDb()
}
func DbSetup(prjName string) error {
	var m = &dbSetup{}
	return m.Setup(prjName)
}
